<?php 
mysql_connect("localhost","root","");
mysql_select_db("w3scripts");
$key=$_GET['key'];
$sql=mysql_query("SELECT * FROM keywords WHERE keyword='$key'");
if($sql){
	$num=mysql_num_rows($sql);
	echo $num . " " . "Keywords found!";
	while($row=mysql_fetch_array($sql)){
		echo "<p>" . $row['keyword'] . "</p>";
	}
}
else {
	echo "No Keyword found!";
}
?>